<?php
	
?>

<html>
<head>
	<link rel="stylesheet" href="styles/menuform.css">
	
	<script>
		function openForm(cellX, cellY)
		{
			var buttonText = document.getElementById("button_" + cellX + "" + cellY).value; 
			window.open("cellForm.php?x=" + cellX + "&y=" + cellY + "&txt=" + buttonText);
		}
	</script>
	
</head>
<body>
	<table class="menu">
		<tr class="row">
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_11">
				<button onclick="openForm(1, 1)"> opret link </button>
			</td>
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_12">
				<button onclick="openForm(1, 2)"> opret link </button>
			</td>
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_13">
				<button onclick="openForm(1, 3)"> opret link </button>
			</td>
		</tr>
		<tr class="row">
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_21">
				<button onclick="openForm(2, 1)"> opret link </button>
			</td>
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_22">
				<button onclick="openForm(2, 2)"> opret link </button>
			</td>
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_23">
				<button onclick="openForm(2, 3)"> opret link </button>
			</td>
		</tr>
		<tr class="row">
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_31">
				<button onclick="openForm(3, 1)"> opret link </button>
			</td>
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_32">
				<button onclick="openForm(3, 2)"> opret link </button>
			</td>
			<td class="cell">
				<div class="logo"> Logo <br> placeholder</div>
				<input type="textbox" value="knap navn" id="button_33">
				<button onclick="openForm(3, 3)"> opret link </button>
			</td>
		</tr>
	</table>
</body>

</html>